#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();
    void setNum(QString n);
    void setOperator(QString opt);

private slots:
    void on_deng_clicked();

    void on_pushButton_clicked();

    void on_back_clicked();

private:
    Ui::Widget *ui;
    QString num1;
    QString num2;
    QString opt;
    int optNum;
};

#endif // WIDGET_H
